package com.vclee.fast.integration.power.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 部门表
 */
@Data
@TableName(value = "sys_group")
public class SysGroup {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "org_id")
    private Integer orgId;

    /**
     * 部门名
     */
    @TableField(value = "`name`")
    private String name;


    @TableField(exist = false)
    private List<SysGroupRole> roles;

}